package model.client.request;

import model.protocol.AbstractPacket;

import java.util.List;
import static model.protocol.Command.CREATE_GROUP_REQUEST;

/**
 * @Description 客户端建立群聊请求，发送到服务端
 * @author czc
 */
public class CreateGroupRequestMessage extends AbstractPacket {
    private List<String> userNameList;
    private String initiator;
    public CreateGroupRequestMessage(String initiator, List<String> userNameList) {
        this.initiator = initiator;
        this.userNameList = userNameList;
    }

    public List<String> getUserNameList(){

        return userNameList;
    }

    public String getInitiator() {
        return initiator;
    }

    @Override
    public Byte getCommand() {
        return CREATE_GROUP_REQUEST;
    }
}
